package com.amway.qy.resource.dept;

public class QyDepartment {
	private	String name;//部门名称。长度限制为1~64个字节，字符不能包括\:*?"<>｜
	private	Integer parentid;//父亲部门id。根部门id为1
	private	String order;//在父部门中的次序值,order值小的排序靠前。
	private	Integer id;//部门id，整型。指定时必须大于1，不指定时则自动生成
	
	public QyDepartment(){}
	
	public QyDepartment(String name, Integer parentid, String order) {
		super();
		this.name = name;
		this.parentid = parentid;
		this.order = order;
	}
	
	public QyDepartment(String name, Integer parentid, String order, Integer id) {
		super();
		this.name = name;
		this.parentid = parentid;
		this.order = order;
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getParentid() {
		return parentid;
	}
	public void setParentid(Integer parentid) {
		this.parentid = parentid;
	}
	public String getOrder() {
		return order;
	}
	public void setOrder(String order) {
		this.order = order;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}

	@Override
	public String toString() {
		return "QyDept [name=" + name + ", parentid=" + parentid + ", order=" + order + ", id=" + id + "]";
	}
	
}
